Skip to content

Conversation

abhishekblue
Copy link
Contributor

Resolves #5579

Description

What is the purpose of this pull request?

This pull request:

  • introduces the @stdlib/stats/incr/nanminmax package, which incrementally computes minimum and maximum, ignoring NaN values.

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Good First PR A pull request resolving a Good First Issue. labels Mar 12, 2025
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Mar 12, 2025

Coverage Report

Package Statements Branches Functions Lines
stats/incr/nanminmax $\color{green}146/146$
$\color{green}+100.00\%$
$\color{green}10/10$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}146/146$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

@abhishekblue abhishekblue marked this pull request as ready for review March 12, 2025 15:02
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Mar 12, 2025
@Neerajpathak07
Copy link
Member

@abhishekblue So, for every example the return value is:- [ -5, 5 ] even if the input values are different.
This would be primarily because the main.js implementation isn't in-line I'd recommend you to go through it again.
you can also run eslint locally to check for any errors.

@abhishekblue
Copy link
Contributor Author

@Neerajpathak07 I have checked tests again, also checked by logging the values of the examples it works fine, also checked modules as well. Any other suggestions?

@Neerajpathak07
Copy link
Member

Neerajpathak07 commented Mar 13, 2025

@abhishekblue Ig you did everything except giving the main.js file a brief look. since we are testing the values for accumulator function and it is coming inconsistent then definitely the function isn't correct.

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: passed
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: passed
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: passed
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
@Planeshifter
Copy link
Member

/stdlib merge

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Sep 27, 2025
@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Sep 27, 2025
Signed-off-by: Philipp Burckhardt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: add stats/incr/nanminmax
5 participants